package com.qfedu.meidijiaju.controller;


import com.qfedu.meidijiaju.entity.StShopping;
import com.qfedu.meidijiaju.service.StShoppingService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-05
 */
@RestController
@Api(tags = "商城主页面商品模板")
public class StShoppingController {

    @Autowired
    private StShoppingService stShoppingService;

    @RequestMapping("/findStShoppingById")
    public StShopping findStShoppingById(int id){
        StShopping stShopping = stShoppingService.getById(id);
        return stShopping;
    }





}

